/*
 * GeoVISTA Center (Penn State, Dept. of Geography)
 * Copyright (c), 2003-2011,  Jin Chen and Alan M. MacEachren, GeoVISTA Center, Penn State University
 * All Rights Researved.
 *
 * This library is developed and distributed for free usage,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * You can redistribute and/or modify it under the terms of the
 * Simplified BSD License
 *
 *
 *
 *
 *
 *
 *
 *
 * @author: jin Chen 
 * @date: Jul 3, 2003$
 * @version: 1.0
 */
package edu.psu.geovista.app.pcp.plot.control;

import edu.psu.geovista.app.pcp.animation.DataAnimator;
import edu.psu.geovista.app.pcp.plot.control.tools.AnimationTool;
import edu.psu.geovista.app.pcp.plot.control.tools.BasicTool;
import edu.psu.geovista.app.pcp.plot.control.tools.DataSelectTool;
import edu.psu.geovista.app.pcp.plot.services.CommonService;

import javax.swing.*;

public class AnimationCfg extends JPanel {
    static final String DataWhole="Whole Data";
    static final String DataCategory="Category";
    static final String DataSelection="Selection";

    static final String BhIterative="Iterative Repaint";
    static final String BhOrdered="Ordered Strum";

    public static final int delayCoff=10;
    //ActionListener timeLnr;//time listener

   /* private Timer timer;
    private int delay=1000;*/

    private ConfigManager owner;
    private AnimationTool anmCmd;
    public AnimationCfg(ConfigManager owner) {
        this.owner =owner;
        DataSelectTool dst=(DataSelectTool) owner.getCmd(BasicTool.DataSelectT );
        /*DataAnimator animator=new DataAnimator();
        AppDataModel model=(DefaultPlotModel) dst.getService().getDataModel() ;
        animator.setModel(model);
        animator.setResponder(dst);*/
        DataAnimator animator=(DataAnimator) dst.getService().getServiceComponent(CommonService.Service_Animation );
        this.add(animator);
        /*this.anmCmd=(AnimationCmd)owner.getCmd(BasicCmd.AnmCmd );
        this.initComponents() ;*/

       /* timer=new Timer(delay,null);
        timer.setInitialDelay(0);
        timer.setCoalesce(true);
        this.timer.addActionListener(this);*/



    }

}